Allow escape sequences in Python prompts
authorkobarity <kobarity@gmail.com>
Tue, 11 Jun 2024 16:09:21 +0000 (01:09 +0900)
committerEli Zaretskii <eliz@gnu.org>
Sat, 15 Jun 2024 10:46:29 +0000 (13:46 +0300)
commitaf6e7ed4c1aa5fae34eda3507a4baf8b52c97312
tree18b58eff17ff3d233dd70db3bcd45e3817041721
parentffa349f983fa5c754fd7751c0757f6c704fbfe5a
Allow escape sequences in Python prompts

* lisp/progmodes/python.el (python-shell-prompt-detect): Use
Python's json package if available, and remove escape sequences
in prompts.
* test/lisp/progmodes/python-tests.el
(python-tests-interpreter-2-6-higher-p): New predicate
function.
(python-shell-prompt-detect-7): New test.  (Bug#71440)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el